package com.vooda.dao;

import com.vooda.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * @author KennyDavid
 */
public interface UserDao extends JpaRepository<User, Long>, JpaSpecificationExecutor<User> {

    /**
     * 根据openId查用户
     *
     * @param openId openId
     * @param isDel  是或删除
     * @return user
     */
    User findByOpenIdAndIsDel(String openId, Boolean isDel);
}
